
var express = require('express')
var User = require('../controller/user')
var router = express.Router()

router.get('/', User.getAll);
router.get('/:id', User.get);
router.put('/:id', User.put);
router.post('/', User.post);
router.delete('/:id', User.delete);

module.exports = router